def call(project, branch){

    def v100AudioAlgorithm = [
        'label' : 'ANACONDA3',
        'image' : '192.168.9.38:18082/yidao/jnlp-slave:anaconda',
        'gitUrl' : [
            // 'url' : 'ssh://gerrit@192.168.30.243:29418/V100_AudioAlgorithm.git',
            'url' : 'ssh://git@192.168.9.61:10022/v100/V100_AudioAlgorithm.git',
            'branch' : branch,
            'targetDir' : 'V100_AudioAlgorithm'
        ],
        'buildScript' : 'source ~/anaconda3/bin/activate V100 && conda env list && python --version && bash V100_AudioAlgorithm/compile.sh V100_AudioAlgorithm',
        'artifact' : 'V100_AudioAlgorithm.zip',
        'artifactory' : "V100Robot/${project}"
    ]

    def v100SensorService = [
        'label' : 'UBUNTU_FOCAL',
        'image' : '192.168.9.38:18082/yidao/jnlp-slave:focal',
        'gitUrl' : [
            // 'url' : 'ssh://gerrit@192.168.30.243:29418/V100_SensorService.git',
            'url' : 'ssh://git@192.168.9.61:10022/v100/V100_SensorService.git',
            'branch' : branch,
            'targetDir' : 'V100_SensorService'
        ],
        'buildScript' : 'cd V100_SensorService && make clean && . ./env.sh && make && cd .. && tar cvf V100_SensorService.tar V100_SensorService',
        'artifact' : 'V100_SensorService.tar',
        'artifactory' : "V100Robot/${project}"
    ]

    def m100RobotMobile = [
        'label' : 'FLUTTER',
        'image' : '192.168.9.38:18082/yidao/jnlp-slave:flutter',
        'gitUrl' : [
            // 'url' : 'ssh://gerrit@192.168.30.243:29418/m100/robot_mobile.git',
            'url' : 'ssh://git@192.168.9.61:10022/m100/robot_mobile.git',
            'branch' : branch,
            'targetDir' : ''
        ],
        'buildScript' : 'flutter build apk --debug',
        'artifact' : 'build/app/outputs/flutter-apk/app-debug.apk',
        'artifactory' : "M100Robot/${project}"
    ]

    def buildTemplate = [
        'V100_AudioAlgorithm' : v100AudioAlgorithm,
        'V100_SensorService' : v100SensorService,
        'M100RobotMobile' : m100RobotMobile
    ]

    return buildTemplate.get(project)

}